package com.api.common.model.dto;

import lombok.Data;

import java.io.Serializable;

/**
 * @author: 崔老爷
 * Date: 2024/10/26 8:49
 * @Description:
 */

@Data
public class ServerDto implements Serializable {

    public Integer port;
    public String hostAddress;
    public String hostName;

    public String getUrl(){
        return String.format("http://%s:%d",hostAddress,port);
    }

    private static final long serialVersionUID = 1L;
}
